package home.projects.recipes.chapfour;

/**
 * @author SANJAY
 *
 */
public class Product {

   private String productId;
   
   private Double price;
     
   public Product() {
      super();
   }

   public Product(String productId, Double price) {
      super();
      this.productId = productId;
      this.price = price;
   }

   public static Product createProduct(String productId, Double price) {
      return new Product(productId, price);
   }
   
   public Product getProduct(String productId, Double price) {
      return new Product(productId, price);
   }
   
   public String getProductId() {
      return productId;
   }

   public void setProductId(String productId) {
      this.productId = productId;
   }

   public Double getPrice() {
      return price;
   }

   public void setPrice(Double price) {
      this.price = price;
   }
      
}
